{% extends 'base.htm' %}
{% block title %}{{ forum.title }} : Search Results {% endblock %}
{% block description %}{{ forum.description }}{% endblock %}
{% block keywords %}{{ forum.description }}{% endblock %}

{% block path %}
    <table width="100%" cellspacing="2" cellpadding="2" border="0">
    <tbody>
     <tr>
      <td class="nav" valign="bottom" align="left">
       <span class="nav" style="color: rgb(255, 102, 0);">
        <a class="nav" href="/">{{ forum.title }}</a>
        &raquo; 
        <a class="nav" href="">&#25628;&#32034;&#32467;&#26524; </a>
       </span>
      </td>
      <td valign="middle" nowrap="nowrap" align="right">
       <object>
        <div class="pagination">
        </div>
       </object>
      </td>
     </tr>
    </tbody>
    </table>
{% endblock %}

{% block main%}

    <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
    <tbody>
        <tr>
            <th class="thLeft" width="150" nowrap="nowrap" height="26">&#20316;&#32773;</th>
            <th class="thRight" nowrap="nowrap">&#24086;&#23376;</th>
        </tr>
        {% for post in results %}
        <tr id="{{ post.key.id }}">
            <td class="row1" width="10%" valign="top" nowrap="nowrap" align="left">
             <span class="name">
              <b><a class="gensmall" style="font-size: 12px;"><a href="viewProfile?user={{ post.author.email }}&height=400&width=700" class="thickbox" title="{{ post.author }} profile">{{ post.author }}</a></b>
             <span class="postdetails">
              <!-- ranga -->
              <br/>
              <br/>
             </span>
              <img src="/avatar?user={{ post.author.email }}" alt=""/>
             </span>

            </td>
            <td class="row1" width="100%" valign="top" height="100%">
             <table width="100%" cellspacing="0" cellpadding="0" border="0" style="height: 100%;">
             <tbody>
             <tr>
            <td valign="top" align="left">
              <a href="/view?id={{ post.topic.key.id }}&page={{ page }}#{{ post.key.id }}">
               <img width="12" height="9" border="0" alt="" src="/images/icon_minipost.gif"/>
              </a>
             <span class="postdetails">
              Sent: {{ post.date|date:"d.m.Y H:i" }} <b>{{ post.topic.name }}</b>
             </span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
             <span class="gensmall">
             <object>
              <hr/>
             </object>
             </span>
            </td>
        </tr>
        <tr>
            <td valign="top" height="100%" colspan="2">
             <span class="postbody">{{ post.body }}</span>
            </td>
        </tr>
        <tr>
            <td>
             <span class="gensmall">
             <object>
              <hr/>
             </object>
             </span>
             <span class="gen">{% if post.author.googleTalkStatus %}<img src="/images/icon_online.gif" alt="Online" />{% else %}<img src="/images/icon_offline.gif" alt="Offline" />{% endif %}</span>
             <span class="gen"><a href="prvateMessage?jid={{ post.author.email }}&height=300&width=700" class="thickbox" title="Send Private Message"><img src="/images/icon_pm.gif" alt="" border="0" height="18" width="59"></a></span>
            </td>
        </tr>
        </tbody>
        </table>
        </td>
    </tr>
    <tr>
        <td class="spaceRow" height="1" colspan="2">
         <img width="1" height="1" alt="" src="/images/spacer.gif"/>
        </td>
    </tr>
    {% endfor %}
    </tbody>
    </table>
    
{% endblock%}